<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://www.icesoft.com/icefaces/component" prefix="ice"%>

<f:view>

	<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Insert title here</title>
	<link rel="stylesheet" type="text/css" href="./xmlhttp/css/rime/rime.css" />
	</head>
	<body>
		
		<ice:form>
			<ice:dataTable
					sortColumn="#{arquivosEnviadosAction.colunaASerOrdenada}"
					sortAscending="#{arquivosEnviadosAction.ordem}"
                    value="#{arquivosEnviadosAction.arquivos}"
                    var="item" >
                    
                    <!-- Stock number -->
                    <ice:column>         
                    <f:facet name="header">                                      
                        <ice:commandSortHeader
                            columnName="#{arquivosEnviadosAction.COLUNA_NOME}"
                            arrow="true" >
                        	<ice:outputText value="#{arquivosEnviadosAction.COLUNA_NOME}"/>
                    	</ice:commandSortHeader>
                    	</f:facet>
                    	<ice:outputText value="#{item.nome}"/>
                    </ice:column>
                    
                    <!-- Model number -->
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Path"/>
                        </f:facet>
                        <ice:outputText value="#{item.path}"/>
                    </ice:column>
                    
                    <!-- Description  -->
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Data"/>
                        </f:facet>
                        <ice:outputText value="#{item.dataUpload}"/>
                    </ice:column>                                                                         
                    
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Tipo"/>
                        </f:facet>
                        <ice:outputText value="#{item.tipo.tipo}"/>
                    </ice:column> 
                </ice:dataTable>
		</ice:form>
		
	</body>
	</html>
</f:view>